package com.yeban.javase.day02.test01;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/10
 */


public class Worker extends Person {

    public Worker() {
    }

    public Worker(String name, int age) {
        super(name, age);
    }

    public void work() {
        System.out.println(this.getAge() + "岁的" + this.getName() + "正在工作...");
    }
}
